package cn.zwk.product.service;

import cn.zwk.product.entity.AttrAttrgroupRelationEntity;
import cn.zwk.product.entity.AttrEntity;
import cn.zwk.product.vo.GroupWithAttrVo;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.zwk.common.utils.PageUtils;
import cn.zwk.product.entity.AttrGroupEntity;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author zwk
 * @email ${email}
 * @date 2024-04-19 15:06:08
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params,Long catelogId);
    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Long attrgroupId,Map<String,Object> params);

    boolean removeRelation(List<AttrAttrgroupRelationEntity> relationEntity);

    List<GroupWithAttrVo> groupWithAttrByCatId(Long catelogId);
}
